package uk.co.hephistocles.blobGame;

import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;

import com.Leadbolt.AdController;


public class LeadBoltActivity extends Activity
{
	private AdController myController;
	
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		
		// create a new layout
		LinearLayout layout = new LinearLayout(this);
		
		/*
		Add any elements to your view
		*/
		
		// make the view visible
		this.setContentView(layout);	
		
		
		final Activity act = this;		
		// now add the banner or overlay to the app
		layout.post(new Runnable() {
			public void run() {
				myController = new AdController(act, "237945898");
				myController.loadAd();
			}
		});
	}
	public void onDestroy()
	{
		myController.destroyAd();
		super.onDestroy();
	}
}
